<?php
/**
 * 快递公司后台管理
 * @version 1.0
 * @author ezhu <ezhu@jipukeji.com>
 */

namespace Admin\Controller;

class ExpressController extends AdminController{
    
    
    protected function _initialize(){
        parent::_initialize();
    }
    
    
    /**
     * 快递公司列表
     */
    public function index(){
        $letter = trim(I('get.letter'));
        $name = trim(I('get.name'));
        $order = '`sort` DESC';
        $map = array();
        $map['status'] = array('egt', 0);
        $letter && $map['letter'] = $letter;
        $name && $map['name'] = array('like','%'.$name.'%');
        $this->assign('name',$name);
        $this->assign('letter',$letter);
        parent::index($map,$order);
    }
    
    
}